<?php
// +----------------------------------------------------------------------
// | WEB路由
// +----------------------------------------------------------------------
use think\facade\Route;

Route::group('/', function () {

    // 首页
    Route::get('', 'index/index');
})->prefix('web.')->pattern([
    // 路由参数统一验证
    'name' => '.*',
    'id' => '\d+',
    'ids' => '[0-9,()]+',
])->append([
    // 请求类型
    'type' => 'web',
]);
